package com.zuoye;

import java.util.Scanner;

public class Zuoye22 {
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		System.out.println("请输入是否是会员：是(y)/否(其他字符)");
		String shi=input.next();
		System.out.println("请输入购物金额：");
		double jine=input.nextDouble();
		if(shi.equals("y")) {
			if(jine>=200) {
				jine=jine*0.75;
			}else {
				jine=jine*0.8;
			}
		}else {
			if(jine>100) {
				jine=jine*0.9;
			}
		}
		System.out.println("实际支付："+jine);
	}

}
